package file;

import java.io.File;

public class Test7 {
    public static void main(String[] args) {
        File file = new File("d:/test/test1.txt");
        File dest = new File("d:/test/test4.txt");
        System.out.println(file.exists());
        System.out.println(dest.exists());
        System.out.println(file.renameTo(dest));
        System.out.println(file.exists());
        System.out.println(dest.exists());
    }
}
